FCNTL

Section: MINTLIB LIBRARY FUNCTIONS (3)
Updated: 3 March 1993
Index Return to Main Contents
 

NAME

fcntl - file control  

SYNOPSIS

#include <fcntl.h>

int fcntl(int fildes, int cmd, ...);
 

DESCRIPTION

fcntl provides for control over open files. fildes is a file descriptor obtained from a creat, dup, fcntl, open or pipe call. Since the fcntl call is nothing but an interface to the Fcntl system call, the user is referred to the Fcntl page for an overview of available commands.  

SEE ALSO

creat(3), dup(3), fcntl(3), open(3), pipe(3)  

RETURN VALUES

See Fcntl for a detailed description of return codes. In general, -1 is returned on failure; any other value indicates success; the meaning is dependent on the command executed.  

NOTES

Under TOS, fcntl always returns -1. The available commands for Fcntl tend to increase all the time; the current list is likely to be out of date.
 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
RETURN VALUES
NOTES

This document was created by man2html, using the manual pages.
Time: 11:14:51 GMT, June 22, 2025